@echo off
echo 正在编译多标签页FBro浏览器...
echo.

REM 检查是否存在Visual Studio
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" (
    "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" "2-多标签页浏览器.csproj" /p:Configuration=Debug
    goto done
)

if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" (
    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" "2-多标签页浏览器.csproj" /p:Configuration=Debug
    goto done
)

if exist "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" (
    "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "2-多标签页浏览器.csproj" /p:Configuration=Debug
    goto done
)

echo 未找到MSBuild工具，请确保已安装Visual Studio或.NET Framework开发工具
echo.

:done
echo.
echo 编译完成，按任意键退出...
pause >nul